LINALG
Source Files
Modules
Procedures
Derived Types
diag_to_csr
Function
15 statements
Source File
linalg_sparse.f90
linalg_sparse
diag_to_csr
Contents
public pure function diag_to_csr(a) result(rst)
Converts a diagonal matrix to a CSR matrix.
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=real64),
intent(in),
dimension(:)
::
a
The diagonal matrix to convert.
Return Value
type(
csr_matrix
)
The CSR matrix.